package cn.innosmart.aq.camera.protocol;


/**
 * Created by davidlin1980 on 12/4/14.
 */
public class CommandError extends BaseError {

    public static final int ERROR_NONE = 0;
    public static final int ERROR_GENERIC = 1;
    public static final int ERROR_BUSY = 2;
    public static final int ERROR_FAILED_TO_CONNECT = 4;
    public static final int ERROR_NOT_CONNECTED = 5;
    public static final int ERROR_INVALID_CREDENTIAL = 6;
    public static final int ERROR_TIMED_OUT = 7;
    public static final int ERROR_NOT_IMPLEMENTED = 8;
    public static final int ERROR_INVALID_PARAM = 9;

    public CommandError(BaseError error) {
        mCode = error.getCode();
        mMessage = error.getMessage();
    }

    public CommandError(int code, String message) {
        super(code, message);
    }
}
